package com.mutouren.modules.datapush.strategy;

import com.mutouren.modules.datapush.config.RepeatStrategyConfig;

public class RemoteRepeatStrategyManager extends RepeatStrategyManager {

	@Override
	public RepeatStrategy getRepeatStrategy(String methodAlias) {
		//return super.getRepeatStrategy(methodAlias);
		return RepeatStrategyConfig.getRepeatStrategy(methodAlias);
	}
	
	@Override
	public void addRepeatStrategy(RepeatStrategy strategy) {
		throw new IllegalArgumentException("in remote mode, not permit add repeatStrategy");
	}
}
